<!DOCTYPE html>
<!--
     SPDX-License-Identifier: CC-BY-SA-4.0
     SPDX-FileCopyrightText: 2020 seL4 Project a Series of LF Projects, LLC.
-->
<!-- Page last generated 2025-02-20 03:16:15 +0000 -->
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>BeagleBone Black / Blue | seL4 docs</title>

    <!-- Our stylesheet and theme stylesheet.  Contains bootstrap. -->
    <link rel="stylesheet" href="/assets/css/style.css" type="text/css">
    <!-- Font awesome -->
    <link href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
    <!-- Pygments syntax highlighting  -->
    <link rel="stylesheet" href="/assets/css/highlighting/trac.css" type="text/css">
    <link rel="icon" type="image/x-icon" href="/assets/favicon.ico"><script defer data-domain="docs.sel4.systems"
	    src="https://analytics.sel4.systems/js/script.js"></script></head>

  <body class="container-fluid">

    



<header>
  <ul class="row menu">
    <li class="col-xs-12 col-md-2" >
            <a href="https://sel4.systems" class="skip-icon">
              <img class="img-responsive" src="/assets/logo-text-white.svg" alt="seL4 logo" />
            </a>
    </li>
    <li class="col-xs-12 col-md-10 menu">
      <nav aria-label="Banner links">
        <h2><a href="/Resources" />Resources</h2>
        <h2><a href="/processes" />Contributing</a></h2>
        <h2><a href="/projects" />Projects</h2>
        <h2><a href="/Tutorials" />Tutorials</h2>
        <iframe title="DuckDuckGo search bar" src="https://duckduckgo.com/search.html?site=docs.sel4.systems&prefill=Search%20sel4.systems" style="overflow:hidden;margin-bottom:10px; padding:0;height:40px;float:right;border-width: 0px"></iframe>
      </nav>
    </li>
  </ul>
  <div class="clear"></div>
  
<div class="breadcrumbs bootstrap hidden-sm-down">
  <nav class="sel-breadcrumb" aria-label="Breadcrumb" >
    <ol class=" list-unstyled" vocab="http://schema.org/" typeof="BreadcrumbList">
      
      
        

        

        <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <a property="item" typeof="WebPage" href="/">
              <span property="name"><b>seL4 Docs</b></span>
            </a>
            <meta property="position" content="1" />
        </li>
      
        

        

        <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <a property="item" typeof="WebPage" href="/Hardware/">
              <span property="name"><b>Supported platforms</b></span>
            </a>
            <meta property="position" content="2" />
        </li>
      
        

        
          <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <span property="name">BeagleBone Black / Blue</span>
            <meta property="position" content="3" /></li>
          
    </ol>
  </nav>
  <nav class="sel-version" aria-label="Current Versions">
    <ol class="list-unstyled">
      <li class="list-unstyled text-right" style="margin-left:auto; padding:0rem 0rem;">
        Current versions:</li>
      <li class="list-unstyled text-right">
      <a href="/releases/sel4/13.0.0"><b>seL4-13.0.0</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/microkit/1.4.1"><b>microkit-1.4.1</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/camkes/camkes-3.11.0"><b>camkes-3.11.0</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/capdl/0.3.0"><b>capDL-0.3.0</b></a></li>
      </ol>
  </nav>
  <div class='clear'></div>
</div>


</header>

    <main>
      <div class="row">
  <div class="hidden-xs col-sm-4 col-md-3 col-lg-2">
    


<div class="sidebar">
















</div>

  </div>
  <div class="col-sm-8 col-md-9 col-lg-8 main">
    
    <div class="content">
      <h1 id="beaglebone-black--blue">BeagleBone Black / Blue</h1>

<p>This page contains info about building seL4 on
<a href="https://beagleboard.org/black">BeagleBone Black</a> and
<a href="https://beagleboard.org/blue">BeagleBone Blue</a>.</p>

<h2 id="building-for-the-beaglebone-black--blue">Building for the BeagleBone Black / Blue</h2>
<p>These instructions were written by Tim Newsham. The BeagleBone is
a community-supported port.</p>

<h3 id="requirements">Requirements</h3>
<p>We suggest using the <code class="language-plaintext highlighter-rouge">arm-linux-gnueabi-</code> cross-compilers. Use
<a href="/Resources#getting-cross-compilers">the instructions on getting a toolchain</a>.</p>

<h3 id="building">Building</h3>

<h4 id="sel4test">seL4test</h4>

<p>For BeagleBone Blue, substitute <code class="language-plaintext highlighter-rouge">am335x-boneblack</code> with <code class="language-plaintext highlighter-rouge">am335x-boneblue</code>.</p>

<p>Checkout the sel4test project using repo as per <a href="/seL4Test">seL4Test</a></p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>repo init <span class="nt">-u</span> https://github.com/seL4/sel4test-manifest.git
repo <span class="nb">sync
mkdir </span>cbuild
<span class="nb">cd </span>cbuild
../init-build.sh <span class="nt">-DPLATFORM</span><span class="o">=</span>am335x-boneblack <span class="nt">-DAARCH32</span><span class="o">=</span>1
<span class="c"># The default cmake wrapper sets up a default configuration for the target platform.</span>
<span class="c"># To change individual settings, run `ccmake` and change the configuration</span>
<span class="c"># parameters to suit your needs.</span>
ninja

</code></pre></div></div>

<p>Generated binaries can be found in the <code class="language-plaintext highlighter-rouge">images/</code> directory.</p>

<h2 id="booting-on-the-beaglebone-black--blue">Booting on the BeagleBone Black / Blue</h2>

<h3 id="hardware-requirements-beaglebone-black">Hardware Requirements (BeagleBone Black)</h3>

<ul>
  <li>Power supply (5V DC or miniUSB cable)</li>
  <li>Serial adapter <a href="http://elinux.org/Beagleboard:BeagleBone_Black_Serial">http://elinux.org/Beagleboard:BeagleBone_Black_Serial</a></li>
  <li>microSD card for file booting or Ethernet cable for network boot</li>
</ul>

<h3 id="hardware-requirements-beaglebone-blue">Hardware Requirements (BeagleBone Blue)</h3>

<ul>
  <li>Power supply (12V DC, 2S LiPo battery or microUSB)</li>
  <li>Serial adapter (Connect to UT0 header)</li>
  <li>microSD card for file booting or microUSB cable for network boot</li>
</ul>

<h3 id="interacting-with-u-boot">Interacting with U-Boot</h3>

<p>Connect a serial adapter between your development box and the BeagleBone. Use
a serial program such as picocom or screen to connect to the serial port:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>picocom /dev/ttyUSB0 -b 115200
</code></pre></div></div>

<p>Power on the device and hit space a few times to interrupt the normal boot
process and get a U-Boot prompt.</p>

<h4 id="booting-from-microsd-card">Booting from microSD card</h4>

<p>To boot from a microSD card, copy the <code class="language-plaintext highlighter-rouge">sel4test-driver-image-arm-am335x</code> file
to a FAT32 partition the microSD card and insert the card in the BeagleBone.</p>

<p>At the U-Boot prompt, enter the following to load and run the image:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>fatload mmc 0 ${loadaddr} sel4test-driver-image-arm-am335x
bootm ${loadaddr}
</code></pre></div></div>

<h4 id="booting-from-tftp">Booting from TFTP</h4>

<p>To boot over Ethernet, configure your DHCP server to provide a DHCP lease and
to specify sel4test as the boot file.
Configure a TFTP server to serve the <code class="language-plaintext highlighter-rouge">sel4test-driver-image-arm-am335x</code> file.</p>

<p>For BeagleBone Black, plug in an Ethernet cable. For BeagleBone Blue, make sure
a microUSB cable is plugged in and connected to a computer running a DHCP
server. Then, at the U-Boot prompt enter:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dhcp
bootm ${loadaddr}
</code></pre></div></div>

<p>To load an alternate image from the TFTP server at 1.2.3.4, use:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dhcp ${loadaddr} 1.2.3.4:refos-image-arm-am335x
bootm ${loadaddr}
</code></pre></div></div>

<h2 id="other-resources">Other resources</h2>

<ul>
  <li><a href="http://julien.gunnm.org/geek/sel4/beaglebone%20black/2016/06/15/beaglebone-black-sel4-uart1/">Supporting the UART1 interface with CAmkES</a></li>
</ul>

    </div>
  </div>
</div>

    </main>
    


<footer class="site-footer">

  <h2 class="footer-heading">seL4 docs</h2>

  <div class="footer-col-wrapper">

    <div class="col-md-2">
      



<ul class="social-media-list">
  <li><a href="https://github.com/sel4"><i class="fab fa-github"></i> <span class="username">sel4</span></a></li><li><a href="https://github.com/sel4proj"><i class="fab fa-github"></i> <span class="username">sel4proj</span></a></li>
</ul>

    </div>

    <div class="col-md-8">
      <ul class="list-unstyled">
        <li>
          This site is for displaying seL4 related documentation.  Pull requests are welcome.
        </li>
        
          <li>
            Site last updated: Fri Feb 7 10:17:38 2025 +1100 ee78c8857c
          </li>
          <li>
                Page last updated: Mon Jan 6 18:52:01 2025 +1100 df31e5ccb8
          </li>
        
      </ul>
    </div>
    <div class="col-md-2">
<a href="https://github.com/seL4/docs/blob/master/Hardware/Beaglebone.md">View page on GitHub</a>
      <br />
      <a href="https://github.com/seL4/docs/edit/master/Hardware/Beaglebone.md">Edit page on GitHub</a>
      <br />
      <a href="/sitemap">Sitemap</a>
    </div>

  </div>

</footer>

  </body>
</html>
